import defaultSettings from '@/settings'

const title = defaultSettings.title || 'Vue Admin Template'

export default function getPageTitle(pageTitle) {
  if (pageTitle) {
    if (process.env.NODE_ENV === 'development') {
      return pageTitle
    }
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
